package com.suray.wcs.service.hk.agv;

import com.suray.wcs.service.hk.agv.extern.function.HkAgvExternFunc;
import com.suray.wcs.service.hk.agv.system.HkAgvImpl;
import com.suray.wcs.service.test.base.BaseThread;
import org.springframework.stereotype.Component;

@Component
public class HkAgvControlThread extends BaseThread {

    public static HkAgvImpl hkAgv;

    public HkAgvControlThread() {
        super("HK Agv Control", 1000);

        hkAgv = new HkAgvImpl(HkAgvExternFunc.findUnFinishAgvTask());

        start();
    }

    @Override
    protected void process() {
        hkAgv.run();
    }
}
